package lormi.meipin.vo;

import java.io.Serializable;
import java.util.Date;

import lormi.meipin.entity.Member;

public class LoginVo implements Serializable{
	
	private static final long serialVersionUID = 1L;

	private Integer id;

    private String mobile;
    
    private String token;

    private Byte usertype;

    private Date createtime;

    private Date updatetime;
    
    public LoginVo(){}
    
    public LoginVo(Member member, String token) {
		super();
		this.id = member.getId();
		this.mobile = member.getMobile();
		this.token = token;
		this.usertype = member.getUsertype();
		this.createtime = member.getCreatetime();
		this.updatetime = member.getUpdatetime();
	}
    
    public LoginVo(Integer id, String mobile, String token, Byte usertype, Date createtime, Date updatetime) {
		super();
		this.id = id;
		this.mobile = mobile;
		this.token = token;
		this.usertype = usertype;
		this.createtime = createtime;
		this.updatetime = updatetime;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Byte getUsertype() {
        return usertype;
    }

    public void setUsertype(Byte usertype) {
        this.usertype = usertype;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }
}